class Student implements Cloneable {
    String name;
    int age;
    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}


    public static void main(String[] args) {
        
    }
public class Test {
    public static void main1(String[] args) throws CloneNotSupportedException{
        Student student1 = new Student();
        Student student2 = (Student) student1.clone();
    }
}
